package com.xuan.service;

import com.xuan.entity.po.UserRoles;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuan.entity.result.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xuan
 * @since 2025-06-12
 */
public interface IUserRolesService extends IService<UserRoles> {

    Result<String> getUserRoleCode(Long userId);

    void bindDefaultRole(Long userId);

    void upgradeToAdmin(Long userId);

    void downgradeToUser(Long userId);

    Result<List<Long>> getAllCommonUser();

    Result<List<UserRoles>> getAllUser();
}
